package com.ohuang.test_compose.util;

public class StackMsg {

    public static String getStackMsg() {
        StringBuilder stringBuilder = new StringBuilder();
        StackTraceElement[] stackTrace = new Throwable().getStackTrace();
        for (StackTraceElement stackTraceElement : stackTrace) {

            stringBuilder.append( stackTraceElement.toString()).append("\n");
        }
        return stringBuilder.toString();
    }
}
